package com.hrs.core.service;

import com.hrs.common.result.Result;
import com.hrs.enity.db.PayOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hrs.enity.dto.PayLogRegisterDto;
import com.hrs.enity.dto.PayLogViewDto;
import com.hrs.enity.dto.PayOrderViewDto;
import com.hrs.enity.ro.PayOrderListRo;

import java.util.List;

/**
* @author 纱雾休比酱
* @description 针对表【t_pay_order(发放单)】的数据库操作Service
* @createDate 2023-01-13 10:06:01
*/
public interface PayOrderService extends IService<PayOrder> {

    /**
     * 发放单列表*
     * @param payOrderListRo
     * @return
     */
    Result<List<PayOrderViewDto>> listPayOrder(PayOrderListRo payOrderListRo);

    /**
     * 生成本月薪酬数据*
     * @return
     */
    Result<String> initPay();

    /**
     * 登记明细*
     * @param logRegisterDto
     * @return
     */
    Result<String> registerLog(PayLogRegisterDto logRegisterDto);

    /**
     *  reviewLog*
     * @param logRegisterDto
     * @return
     */
    Result<String> reviewLog(PayLogRegisterDto logRegisterDto);

    /**
     * 某个发放单详情*
     * @param orderId
     * @return
     */
    Result<List<PayLogViewDto>> listPayLog(Long orderId);
}
